home *** CD-ROM | disk | FTP | other *** search
/ The Utilities Experience / The Utilities Experience - Volume 1.iso / software / demos / r-z / stormc-demo / include / assert.h next >
C/C++ Source or Header  |  1995-12-28  |  384b  |  20 lines

  1. #ifndef _INCLUDE_ASSERT_H
  2. #define _INCLUDE_ASSERT_H
  3.  
  4. /*
  5. **  $VER: assert.h 10.1 (19.7.95)
  6. **  Includes Release 40.15
  7. **
  8. **  '(C) Copyright 1995/96 Haage & Partner Computer GmbH'
  9. **     All Rights Reserved
  10. */
  11.  
  12. #ifdef NDEBUG
  13. #define assert(C)
  14. #else
  15. extern "Asm" void do__assert(char*, char*, unsigned int);
  16. #define assert(C) { if(!(C)) do__assert(#C, __FILE__, __LINE__); }
  17. #endif
  18.  
  19. #endif
  20.